@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --color-primary: #165DFF;
  --color-secondary: #0FC6C2;
  --color-accent: #722ED1;
  --color-success: #00B42A;
  --color-warning: #FF7D00;
  --color-danger: #F53F3F;
  --color-dark: #1D2129;
  --color-light: #F2F3F5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--color-light);
  color: var(--color-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@layer components {
  .transition-custom {
    @apply transition-all duration-300 ease-in-out;
  }

  .shadow-custom {
    @apply shadow-lg shadow-gray-200/50;
  }

  .bg-gradient-custom {
    @apply bg-gradient-to-br from-primary/20 to-primary/5;
  }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  @apply bg-gray-100;
}

::-webkit-scrollbar-thumb {
  @apply bg-gray-400 rounded-full hover:bg-gray-500;
}

/* 表单元素样式 */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea {
  @apply appearance-none;
}

/* 按钮样式 */
button:disabled {
  @apply opacity-50 cursor-not-allowed;
}

/* 图片样式 */
img {
  @apply max-w-full h-auto;
}

/* 过渡效果 */
.fade-enter-active,
.fade-leave-active {
  @apply transition-opacity duration-300;
}

.fade-enter,
.fade-leave-to {
  @apply opacity-0;
}

/* 内容可见性 */
.content-auto {
  content-visibility: auto;
}

/* 自定义工具类 */
@layer utilities {
  .content-auto {
    content-visibility: auto;
  }
} 